export default {
  validEmail(email) {
    const reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/
    return reg.test(email)
  },

  validPhone(phone) {
    const reg = /^[1][3,4,5,7,8][0-9]{9}$/
    return reg.test(phone)
  },

  validPwd(pwd) {
    const reg = /^[0-9a-zA-Z_]{6,12}$/
    return reg.test(pwd)
  },
}
